package com.car.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

import javax.servlet.http.HttpServletResponse;

@Getter
@AllArgsConstructor
public class MyException extends RuntimeException {
    /**
     * 错误信息
     */
    private final String message;
    /**
     * 错误码
     */
    private Integer code = HttpServletResponse.SC_NOT_IMPLEMENTED;

    public MyException(String message) {
        this.message = message;
    }

}
